/**
 * Project Name:Micro-Services-Common
 * File Name   :ThreadLogger.java
 * Package Name:com.micro.services.common.logger.support
 * Date:2015年9月8日上午12:18:25
 * Copyright (c) 2015, http://my.oschina.net/httpssl All Rights Reserved.
 *
*/

package com.micro.services.common.logger.support;

import com.micro.services.common.logger.Logger;

/**
 * ClassName:MicroServicesLogger <br/>
 * Function :TODO ADD FUNCTION. <br/>
 * Reason	:TODO ADD REASON. <br/>
 * Date     :2015年9月8日 上午12:18:25 <br/>
 * @author  :http://my.oschina.net/httpssl
 * @email   :491835898@QQ.COM
 * @since   :JDK 1.7
 * @see 	 
 */
public class MicroServicesLogger implements Logger
{
	/**
	 * 自己的日志接口
	 */
	private Logger logger;
	
	public MicroServicesLogger(Logger logger){
		this.logger = logger;
	}
	
	public Logger getLogger() {
		return logger;
	}

	public void setLogger(Logger logger) {
		this.logger = logger;
	} 
	
	@Override
	public void trace(String msg) {
		logger.trace(msg);
	}

	@Override
	public void trace(Throwable e) {
		logger.trace(e);
	}

	@Override
	public void trace(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.trace(msg, e);
	}

	@Override
	public void debug(String msg) {
		// TODO Auto-generated method stub
		logger.debug(msg);
	}

	@Override
	public void debug(Throwable e) {
		// TODO Auto-generated method stub
		logger.debug(e);
	}

	@Override
	public void debug(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.debug(msg, e);
	}

	@Override
	public void info(String msg) {
		// TODO Auto-generated method stub
		logger.info(msg);
	}

	@Override
	public void info(Throwable e) {
		// TODO Auto-generated method stub
		logger.info(e);
	}

	@Override
	public void info(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.info(msg, e);
	}

	@Override
	public void warn(String msg) {
		// TODO Auto-generated method stub
		logger.warn(msg);
	}

	@Override
	public void warn(Throwable e) {
		// TODO Auto-generated method stub
		logger.warn(e);
	}

	@Override
	public void warn(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.warn(msg, e);
	}

	@Override
	public void error(String msg) {
		// TODO Auto-generated method stub
		logger.error(msg);
	}

	@Override
	public void error(Throwable e) {
		// TODO Auto-generated method stub
		logger.error(e);
	}

	@Override
	public void error(String msg, Throwable e) {
		// TODO Auto-generated method stub
		logger.error(msg, e);
	}

	@Override
	public boolean isTraceEnabled() {
		// TODO Auto-generated method stub
		return logger.isTraceEnabled();
	}

	@Override
	public boolean isDebugEnabled() {
		// TODO Auto-generated method stub
		return logger.isDebugEnabled();
	}

	@Override
	public boolean isInfoEnabled() {
		// TODO Auto-generated method stub
		return logger.isInfoEnabled();
	}

	@Override
	public boolean isWarnEnabled() {
		// TODO Auto-generated method stub
		return logger.isWarnEnabled();
	}

	@Override
	public boolean isErrorEnabled() {
		// TODO Auto-generated method stub
		return logger.isErrorEnabled();
	}

}
